<?php

namespace app\admin\controller;


use app\admin\service\system\GroupService;
use app\BaseController;

class Common extends BaseController
{
    /**
     * 获取配置信息
     * @author dgc<453342213@qq.com>
     */
    public function getConfig()
    {
        try {
            //获取权限组
            $groupService = new GroupService();
            $res['group_list'] = $groupService->getList(['status' => 1]);
            $res['img_path'] = '';
            returnDate($res);
        } catch (\Exception $e) {
            returnMsg($e->getMessage(), $e->getCode());
        }
    }

}
